<?php
$base = $this->request->webroot .$this->request->params['plugin'];
?>
<!DOCTYPE html>
<!--[if IE 8]>
<html xmlns="http://www.w3.org/1999/xhtml" class="ie8 wp-toolbar"  dir="ltr" lang="zh-CN">
<![endif]-->
<!--[if !(IE 8) ]><!-->
<html xmlns="http://www.w3.org/1999/xhtml" class="wp-toolbar"  dir="ltr" lang="zh-CN">
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>仪表盘 &lsaquo; 参考 &#8212; WordPress</title>
<?php echo $this->Html->css('wp-admin/styles.css'); ?>
<?php echo $this->Html->css('wp-admin/styles2.css'); ?>
<?php echo $this->Html->css('wp-admin/colors-fresh.css'); ?>
<!--[if lte IE 7]>
<?php echo $this->Html->css('wp-admin/ie.css'); ?>
<![endif]-->

<?php echo $this->Html->css('bootstrap/css/bootstrap.min.css'); ?>
</head>
<body class="<?php echo $this->name, ' ', $this->view?>">
<div id="wpwrap">
	<div id="adminmenuback"></div>
    <div id="adminmenuwrap">
		<div id="adminmenushadow"></div>
		<ul id="adminmenu" role="navigation">
			<li class="wp-not-current-submenu wp-menu-separator"><div class="separator"></div></li>
			<?php $class = ($this->name == 'Case'||$this->name == 'Service'||$this->name == 'Tags') ? 'wp-has-current-submenu' : 'wp-not-current-submenu';?>
			<li class="wp-has-submenu <?php echo $class?>  menu-top menu-icon-post menu-top-first" id="menu-posts">
				<div class='wp-menu-image'>
					<a href='#' aria-label='案例管理'><br /></a>
				</div>
				<div class="wp-menu-arrow">
					<div></div>
				</div>
				<a href="<?php echo $base?>/case" class="wp-has-submenu <?php echo $class?> menu-top menu-icon-post menu-top-first" tabindex="1" aria-haspopup="true">案例管理</a>
				<div class='wp-submenu'>
					<div class='wp-submenu-wrap'>
						<div class='wp-submenu-head'>案例</div>
						<ul>
							<li id="case-index" class="wp-first-item">
								<a href="<?php echo $base?>/case/index" class="wp-first-item" tabindex="1">所有案例</a>
							</li>
							<li id="case-add">
								<a href="<?php echo $base?>/case/add" tabindex="1">新增案例</a>
							</li>
							<li id="service-index">
								<a href="<?php echo $base?>/service/index" tabindex="1">案例分类</a>
							</li>
							<li id="service-add">
								<a href="<?php echo $base?>/service/add" tabindex="1">新增分类</a>
							</li>
							<li id="tags-index">
								<a href="<?php echo $base?>/tags/index" tabindex="1">标签</a>
							</li>
						</ul>
					</div>
				</div>
			</li>
            <!-- 新闻管理 -->
			<?php $class = ($this->name == 'News') ? 'wp-has-current-submenu' : 'wp-not-current-submenu';?>
			<li class="wp-has-submenu <?php echo $class?>  menu-top menu-icon-post menu-top-first" id="menu-posts">
				<div class='wp-menu-image'>
					<a href='#' aria-label='新闻管理'><br /></a>
				</div>
				<div class="wp-menu-arrow">
					<div></div>
				</div>
				<a href="<?php echo $base?>/news" class="wp-has-submenu <?php echo $class?> menu-top menu-icon-post menu-top-first" tabindex="1" aria-haspopup="true">新闻管理</a>
				<div class='wp-submenu'>
					<div class='wp-submenu-wrap'>
						<div class='wp-submenu-head'>新闻</div>
						<ul>
							<li id="news-index" class="wp-first-item">
								<a href="<?php echo $base?>/news/index" class="wp-first-item" tabindex="1">所有新闻</a>
							</li>
							<li id="news-add">
								<a href="<?php echo $base?>/news/add" tabindex="1">新增新闻</a>
							</li>
						</ul>
					</div>
				</div>
			</li>
			<?php $class = $this->name == 'Banner' ? 'wp-has-current-submenu' : 'wp-not-current-submenu';?>
			<li class="wp-has-submenu <?php echo $class?>  menu-top menu-icon-post menu-top-first" id="menu-posts">
				<div class='wp-menu-image'>
					<a href='#' aria-label='首页Banner'><br /></a>
				</div>
				<div class="wp-menu-arrow">
					<div></div>
				</div>
				<a href="<?php echo $base?>/Banner" class="wp-has-submenu <?php echo $class?> menu-top menu-icon-post menu-top-first" tabindex="1" aria-haspopup="true">首页Banner</a>
				<div class='wp-submenu'>
					<div class='wp-submenu-wrap'>
						<div class='wp-submenu-head'>About</div>
						<ul>
							<li id="banner-index" class="wp-first-item">
								<a href="<?php echo $base?>/banner/index" class="wp-first-item" tabindex="1">首页Banner</a>
							</li>
							<li id="banner-add">
								<a href="<?php echo $base?>/banner/add" tabindex="1">新增Banner</a>
							</li>
						</ul>
					</div>
				</div>
			</li>
			<?php $class = $this->name == 'Links' ? 'wp-has-current-submenu' : 'wp-not-current-submenu';?>
			<li class="wp-has-submenu <?php echo $class?>  menu-top menu-icon-links menu-top-first" id="menu-links">
				<div class='wp-menu-image'>
					<a href='#' aria-label='链接'><br /></a>
				</div>
				<div class="wp-menu-arrow">
					<div></div>
				</div>
				<a href="<?php echo $base?>/Links" class="wp-has-submenu <?php echo $class?> menu-top menu-icon-post menu-top-first" tabindex="1" aria-haspopup="true">友情链接管理</a>
				<div class='wp-submenu'>
					<div class='wp-submenu-wrap'>
						<div class='wp-submenu-head'>About</div>
						<ul>
							<li id="links-index" class="wp-first-item">
								<a href="<?php echo $base?>/links/index" class="wp-first-item" tabindex="1">友情链接管理</a>
							</li>
							<li id="links-add">
								<a href="<?php echo $base?>/links/add" tabindex="1">新增</a>
							</li>
						</ul>
					</div>
				</div>
			</li>
			<?php $class = $this->name == 'Customers' ? 'wp-has-current-submenu' : 'wp-not-current-submenu';?>
			<li class="wp-has-submenu <?php echo $class?>  menu-top menu-icon-links menu-top-first" id="menu-links">
				<div class='wp-menu-image'>
					<a href='#' aria-label='客户'><br /></a>
				</div>
				<div class="wp-menu-arrow">
					<div></div>
				</div>
				<a href="<?php echo $base?>/customers" class="wp-has-submenu <?php echo $class?> menu-top menu-icon-post menu-top-first" tabindex="1" aria-haspopup="true">客户管理</a>
				<div class='wp-submenu'>
					<div class='wp-submenu-wrap'>
						<div class='wp-submenu-head'>About</div>
						<ul>
							<li id="customers-index" class="wp-first-item">
								<a href="<?php echo $base?>/customers/index" class="wp-first-item" tabindex="1">客户管理</a>
							</li>
							<li id="customers-add">
								<a href="<?php echo $base?>/customers/add" tabindex="1">新增</a>
							</li>
						</ul>
					</div>
				</div>
			</li>
			<?php $class = $this->name == 'About' ? 'wp-has-current-submenu' : 'wp-not-current-submenu';?>
			<li class="wp-has-submenu <?php echo $class?>  menu-top menu-icon-post menu-top-first" id="menu-posts">
				<div class='wp-menu-image'>
					<a href='#' aria-label='关于页面管理'><br /></a>
				</div>
				<div class="wp-menu-arrow">
					<div></div>
				</div>
				<a href="<?php echo $base?>/About" class="wp-has-submenu <?php echo $class?> menu-top menu-icon-post menu-top-first" tabindex="1" aria-haspopup="true">关于页面管理</a>
				<div class='wp-submenu'>
					<div class='wp-submenu-wrap'>
						<div class='wp-submenu-head'>About</div>
						<ul>
							<li id="about-index" class="wp-first-item">
								<a href="<?php echo $base?>/about/index" class="wp-first-item" tabindex="1">关于页面</a>
							</li>
						</ul>
					</div>
				</div>
			</li>
			<?php $class = $this->name == 'Feedbacks' ? 'wp-has-current-submenu' : 'wp-not-current-submenu';?>
			<li class="wp-has-submenu <?php echo $class?>  menu-top menu-icon-post menu-top-first" id="menu-posts">
				<div class='wp-menu-image'>
					<a href='#' aria-label='查看需求'><br /></a>
				</div>
				<div class="wp-menu-arrow">
					<div></div>
				</div>
				<a href="<?php echo $base?>/Feedbacks" class="wp-has-submenu <?php echo $class?> menu-top menu-icon-post menu-top-first" tabindex="1" aria-haspopup="true">查看需求</a>
				<div class='wp-submenu'>
					<div class='wp-submenu-wrap'>
						<div class='wp-submenu-head'>需求</div>
						<ul>
							<li id="case-index" class="wp-first-item">
								<a href="<?php echo $base?>/Feedback/index" class="wp-first-item" tabindex="1">所有需求</a>
							</li>
						</ul>
					</div>
				</div>
			</li>
        </ul>
		<!-- ul#adminmenu -->
	</div>
	<div id="wpcontent">
	    <div id="wpadminbar" class="nojq nojs" role="navigation">
    	    <div class="quicklinks">
			    <ul id="wp-admin-bar-root-default" class="ab-top-menu">
					<li id="wp-admin-bar-wp-logo" class="menupop">
                        <?php echo $this->Html->link('<span class="ab-icon"></span>', '/about', array('class'=>'ab-item', 'tabindex'=>10, 'aria-haspopup'=>'true', 'escape'=>false))?>
						    
						<div class="ab-sub-wrapper">
							<ul id="wp-admin-bar-wp-logo-external" class="ab-sub-secondary ab-submenu">
								<li id="wp-admin-bar-view-site" class="">
                                    <?php echo $this->Html->link('查看站点', '/', array('class'=>'ab-item', 'tabindex'=>10))?>
								</li>
							</ul>
						</div>
					</li>
					<li id="wp-admin-bar-my-account" class="menupop with-avatar">
						<a class="ab-item" tabindex="10" aria-haspopup="true" href="http://localhost/wordpress2/wp-admin/profile.php" title="我的帐户">
							您好，Justin
						</a>
						<div class="ab-sub-wrapper">
							<ul id="wp-admin-bar-user-actions" class=" ab-submenu">
								<li id="wp-admin-bar-user-info" class="">
									<a class="ab-item" tabindex="-1" href="http://localhost/wordpress2/wp-admin/profile.php">
										<span class='display-name'>Justin</span>
									</a>
								</li>
								<li id="wp-admin-bar-edit-profile" class="">
                                    <?php echo $this->Html->link('编辑我的个人资料', '/admin/users/edit', array('class'=>'ab-item', 'tabindex'=>'10'))?>
								</li>
								<li id="wp-admin-bar-logout" class="">
                                    <?php echo $this->Html->link('登出', '/admin/users/logout', array('class'=>'ab-item', 'tabindex'=>'10'))?>
								</li>
							</ul>
						</div>
					</li>
				</ul>
		    </div>
	    </div>
		<div id="wpbody">
			<div id="wpbody-content">
				<div class="wrap">
			        <?php echo $this->Session->flash(); ?>
				    <?php echo $this->fetch('content'); ?>
				</div>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div><!-- wpbody -->
	</div><!-- wpcontent -->
    <div id="footer">
        <div class="clear"></div>
    </div>
    <?php echo $this->Html->css('wp-admin/styles1.css'); ?>
	<?php echo $this->element('sql_dump'); ?>
    <div class="clear"></div>
</div><!-- wpwrap -->
</body>
</html>

